function [number, code_size] = levenstein_decode(x, start_position)
	position = 0;
	if (nargin == 2)
		position = start_position - 1;
	end;
	
	code_size = 1;
	while(x(code_size + position) == 1)
		code_size = code_size + 1;
	end;
	if (code_size == 1)
		number = 0;
	else
		number = 1;
		p = code_size - 1;
		while (p > 1)
			pos = code_size  + position;
			code = [x((number + pos):-1:(pos + 1)), 1];
			code_size = code_size + number;
			number = bi2de(code);
			p = p - 1;
		end;
	end;
end
